# 944 简单：删列造序

def minDeletionSize(strs) -> int:
    ret = 0

    print(zip(*strs))

    for j in range(len(strs[0])):
        for i in range(len(strs) - 1):
            if strs[i][j] > strs[i + 1][j]:
                ret += 1
                break

    return ret


minDeletionSize(["cba","daf","ghi"])
